export const PAGE_CODE = 'dcs-parts-partOrderPlan';
import {PAGE} from '../constants';
import moment from 'moment';
const year = Number(moment().format('YYYY'));
const month = Number(moment().format('M'));
//设置管理员权限
export const PERMISSIONS = {
    add: 'add',
    update: 'update',
    submit: 'submit',
    abandon: 'abandon',
    export: 'export',
    approve: 'approve',
    historySearch: 'historySearch'
};
//重置常量
export const DEFAULT_QUERY_OPTION = {
    dealerId: '',
    brandId: '',
    orderPlanYear: year,
    orderPlanMonth: month,
    status: undefined,
    pageIndex: PAGE.index,
    pageSize: PAGE.size,
    sortField: 'code',
    isDesc: true,
};

export const DEFAULT_DEALER_QUERY_OPTION = {
    code: '',
    name: '',
    shortCode: '',
    shortName: '',
    marketDepartmentId: '',
    pageIndex: PAGE.index,
    pageSize: PAGE.size,
    sortField: 'code',
    isDesc: true,
};

export const HISTORY_DEFAULT_QUERY_OPTION = {
    dealerId: '',
    code: '',
    status: undefined,
    planYearmonth: '',
    createTime: [],
    pageIndex: PAGE.index,
    pageSize: PAGE.size,
};
